home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 26 / develop issue 26 code / som and listpart / listpart dr4 / listpart.make < prev    next >
Encoding:
Text File  |  1995-12-04  |  9.6 KB  |  287 lines

  1. #
  2. #    File:        ListPart.make
  3. #
  4. #    Contains:    Makefile for OpenDoc ListPart viewer
  5. #
  6. #    Written by:    Steve Smith
  7. #
  8. #    Copyright:    © 1994-1995 by Apple Computer, Inc., all rights reserved.
  9. #
  10.  
  11. #---------------------------------------------------------------------------    
  12. # PROJECT VARIABLES
  13. #---------------------------------------------------------------------------    
  14.  
  15. TargetName = ListPart
  16. TargetNameILink = {TargetName} (68k)
  17. TargetNamePPCLink = {TargetName} (PPC)
  18. TargetNameFat = {TargetName} (fat)
  19.  
  20. TargetCreatorType = "ÉL∏√"
  21.  
  22. AdditionalIncludes = -i "{somSourceDir}" -i "{SourceDir}"
  23. AdditionalIDLIncludes = -i "{SourceDir}"
  24.  
  25. #---------------------------------------------------------------------------    
  26. # CFM/PEF Version Numbers
  27. #---------------------------------------------------------------------------    
  28. # For detailed instructions on proper CFM/PEF version numbering, see
  29. # Code Fragment Chapter (pg 3-7), Inside Macintosh: PowerPC System Software
  30. #---------------------------------------------------------------------------    
  31.  
  32. CurrentLibraryVersion =        0x01008000        # 1.0 Final
  33. LibraryExportsVersion =        0x00000000        # 0.0
  34. LibraryCodeVersion =        0x00000000        # 0.0
  35.  
  36. #---------------------------------------------------------------------------    
  37. # DIRECTORY DEPENDENCIES
  38. #---------------------------------------------------------------------------    
  39.  
  40. "{TargetDir}"  ƒ "{SourceDir}"
  41. "{ObjectsDir}" ƒ "{SourceDir}"
  42. "{ObjectsDir}" ƒ "{somSourceDir}"
  43. "{ObjectsDir}" ƒ "{ODUtilsImplDir}"
  44.  
  45. #---------------------------------------------------------------------------    
  46. # ROOT TARGET
  47. #---------------------------------------------------------------------------    
  48.  
  49. BUILDPPCLINK ƒ ∂
  50.     "{CppPrecompiledHeaders}"                ∂
  51.     "{TargetDir}{TargetNamePPCLink}"        ∂
  52.     "{somSourceDir}som_ListPart.exp"
  53.  
  54. BUILDREZ ƒ ∂
  55.     "{ObjectsDir}{TargetName}.PPC.rsrc"        ∂
  56.     "{ObjectsDir}{TargetName}.68k.rsrc"
  57.  
  58. BUILDILINK ƒ ∂
  59.     "{CppPrecompiledHeaders}"                ∂
  60.     "{TargetDir}{TargetNameILink}"            ∂
  61.     "{somSourceDir}som_ListPart.exp"
  62.  
  63. BUILDIDL ƒ ∂
  64.     "{somSourceDir}som_ListPart.xih"        ∂
  65.     "{somSourceDir}som_ListPart.xh"        ∂
  66.     "{somSourceDir}som_ListPart.cpp"        ∂
  67.     "{somSourceDir}som_ListPart.exp"
  68.     
  69.  
  70. #---------------------------------------------------------------------------    
  71. # FILE LIST VARIABLES
  72. #---------------------------------------------------------------------------    
  73.  
  74. ListPartOBJECTS = ∂
  75.     "{ObjectsDir}DebugTools.cpp.o"    ∂
  76.     "{ObjectsDir}ListPartGlobals.cpp.o"    ∂
  77.     "{ObjectsDir}ListPart.cpp.o"            ∂
  78.     "{ObjectsDir}ListPartUtils.cpp.o"        ∂
  79.     "{ObjectsDir}ListPartList.cpp.o"        ∂
  80.     "{ObjectsDir}SampleCollections.cpp.o"    ∂
  81.  
  82. somListPartOBJECTS = ∂
  83.     "{ObjectsDir}som_ListPartInit.cpp.o"    ∂
  84.     "{ObjectsDir}som_ListPart.cpp.o"        ∂
  85.  
  86. OpenDocUtilityOBJECTS = ∂
  87.     "{ObjectsDir}AltPoint.cpp.o"             ∂
  88.     "{ObjectsDir}AltPoly.cpp.o"             ∂
  89.     "{ObjectsDir}BndNSUtl.cpp.o"             ∂
  90.     "{ObjectsDir}Crawl.cpp.o"                 ∂
  91.     "{ObjectsDir}DocUtils.cpp.o"             ∂
  92.     "{ObjectsDir}Except.cpp.o"                 ∂
  93.     "{ObjectsDir}FocusLib.cpp.o"             ∂
  94.     "{ObjectsDir}IText.cpp.o"                 ∂
  95.     "{ObjectsDir}FlipEnd.cpp.o"             ∂
  96.     "{ObjectsDir}ISOStr.cpp.o"                 ∂
  97.     "{ObjectsDir}LinkList.cpp.o"             ∂
  98.     "{ObjectsDir}NmSpcUtl.cpp.o"             ∂
  99.     "{ObjectsDir}ODDebug.cpp.o"             ∂
  100.     "{ObjectsDir}ODMemory.cpp.o"            ∂
  101.     "{ObjectsDir}ODNew.cpp.o"                ∂
  102.     "{ObjectsDir}ODUtils.cpp.o"                ∂
  103.     "{ObjectsDir}PasclStr.cpp.o"            ∂
  104.     "{ObjectsDir}PlfmFile.cpp.o"             ∂
  105.     "{ObjectsDir}StorUtil.cpp.o"            ∂
  106.     "{ObjectsDir}StdTypIO.cpp.o"            ∂
  107.     "{ObjectsDir}TempIter.cpp.o"            ∂
  108.     "{ObjectsDir}TempObj.cpp.o"                ∂
  109.     "{ObjectsDir}UseRsrcM.cpp.o"             ∂
  110.     "{ObjectsDir}WinUtils.cpp.o"             ∂
  111.             
  112.             
  113. #---------------------------------------------------------------------------    
  114. # DEPENDENCIES
  115. #---------------------------------------------------------------------------    
  116.  
  117. # --- IDL ---
  118.  
  119. "{somSourceDir}"som_ListPart.cpp ƒ    ∂
  120.     "{somSourceDir}"som_ListPart.idl    ∂
  121.     "{ODIDLIntfDir}"Part.idl
  122.     
  123. "{somSourceDir}"som_ListPart.xih ƒ    ∂
  124.     "{somSourceDir}"som_ListPart.xh    ∂
  125.     "{somSourceDir}"som_ListPart.idl    ∂
  126.     "{SourceDir}ListPartVers.h"        ∂
  127.     "{ODIDLIntfDir}"Part.idl
  128.     
  129. "{somSourceDir}"som_ListPart.xh ƒ        ∂
  130.     "{somSourceDir}"som_ListPart.idl    ∂
  131.     "{SourceDir}ListPartVers.h"        ∂
  132.     "{ODIDLIntfDir}"Part.idl
  133.  
  134. # --- SOURCE ---
  135.  
  136. "{ObjectsDir}ListPart.cpp.o"    ƒ            ∂
  137.     "{CppPrecompiledHeaders}"                ∂
  138.     "{SourceDir}ListPart.cpp"             ∂
  139.     "{SourceDir}ListPart.h"                 ∂
  140.     "{SourceDir}ListPartDef.h"             ∂
  141.     "{SourceDir}ListPartUtils.h"
  142.     
  143. "{ObjectsDir}ListPartUtils.cpp.o"    ƒ        ∂
  144.     "{CppPrecompiledHeaders}"                ∂
  145.     "{SourceDir}ListPartUtils.cpp"        ∂
  146.     "{SourceDir}ListPartUtils.h"
  147.     
  148. "{ObjectsDir}ListPartList.cpp.o"    ƒ        ∂
  149.     "{CppPrecompiledHeaders}"                ∂
  150.     "{SourceDir}ListPartList.cpp"
  151.  
  152. "{ObjectsDir}SampleCollections.cpp.o"    ƒ    ∂
  153.     "{CppPrecompiledHeaders}"                ∂
  154.     "{SourceDir}SampleCollections.cpp"        ∂
  155.     "{SourceDir}SampleCollections.h"
  156.  
  157. # --- SOM OBJECTS ---
  158.  
  159. "{ObjectsDir}som_ListPart.cpp.o"    ƒ        ∂
  160.     "{CppPrecompiledHeaders}"                ∂
  161.     "{somSourceDir}som_ListPart.cpp"        ∂
  162.     "{somSourceDir}som_ListPart.xih"        ∂
  163.     "{SourceDir}ListPart.h"
  164.  
  165. "{ObjectsDir}som_ListPartInit.cpp.o"    ƒ    ∂
  166.     "{CppPrecompiledHeaders}"                ∂
  167.     "{somSourceDir}som_ListPartInit.cpp"    ∂
  168.     "{somSourceDir}som_ListPart.xh"
  169.  
  170.  
  171. #---------------------------------------------------------------------------    
  172. # BUILD LIBRARIES
  173. #---------------------------------------------------------------------------    
  174.  
  175. # --- 68k Link ---
  176.  
  177. "{TargetDir}{TargetNameILink}" ƒƒ      {ListPartOBJECTS}            ∂
  178.                                      {somListPartOBJECTS}            ∂
  179.                                      {OpenDocUtilityOBJECTS}        ∂
  180.                                      "{somSourceDir}som_ListPart.exp"
  181.     Echo Linking: {TargetNameILink}
  182.     {LinkTool}    ∂
  183.         -export `ConvertExportList "{somSourceDir}som_ListPart.exp"` ∂
  184.         {ILinkOptions}                                        ∂
  185.         {ILinkShLibOptions}                                    ∂
  186.         -init ListPartCFMInit                                ∂
  187.         -vercur {CurrentLibraryVersion}                        ∂
  188.         -verdef {LibraryExportsVersion}                        ∂
  189.         -verimp {LibraryCodeVersion}                        ∂
  190.         {ShLibPreLibraries}                                    ∂
  191.         {ListPartOBJECTS}                                    ∂
  192.         {somListPartOBJECTS}                                ∂
  193.         {OpenDocUtilityOBJECTS}                                ∂
  194.         "{ODCFMLibrariesDir}OpenDoc Core.stub"                ∂
  195.         "{ODCFMLibrariesDir}OpenDoc User Interface.stub"    ∂
  196.         "{ODCFMLibrariesDir}OpenDoc Storage.stub"            ∂
  197.         "{ODCFMLibrariesDir}OpenDoc Imaging.stub"            ∂
  198.         "{ODCFMLibrariesDir}OpenDoc Layout.stub"            ∂
  199.         "{ODCFMLibrariesDir}Memory Manager.stub"            ∂
  200.         {ShLibPostLibraries}                                ∂
  201.         -o "{ObjectsDir}{TargetNameILink}".seg
  202.     If !{Status}
  203.         Echo Building: {TargetNameILink}.SYM
  204.         {SymTool} "{ObjectsDir}{TargetNameILink}".seg.NJ    ∂
  205.                 -o "{TargetDir}{TargetNameILink}".SYM -sym 3.2
  206.         Echo Building: {TargetNameILink}∂'s code∂/data fragment
  207.         MakeFlat "{ObjectsDir}{TargetNameILink}".seg -o "{TargetDir}{TargetNameILink}"
  208.         Echo Copying: {TargetNameILink}∂'s resources
  209.         Echo "include ∂"{RsrcObjectsDir}{TargetName}.68k.rsrc∂";" | Rez -a -o "{TargetDir}{TargetNameILink}"
  210.         Echo "delete 'ckid';"  | Rez -a -o "{TargetDir}{TargetNameILink}"
  211.         SetFile -a Bi -c "{TargetCreatorType}" {Targ}
  212.     End
  213.  
  214. # --- PowerPC Link ---
  215.  
  216. "{TargetDir}{TargetNamePPCLink}" ƒƒ        {ListPartOBJECTS}            ∂
  217.                                         {somListPartOBJECTS}        ∂
  218.                                         {OpenDocUtilityOBJECTS}        ∂
  219.                                         "{somSourceDir}som_ListPart.exp"
  220.     Echo Linking: {TargetNamePPCLink}
  221.     {LinkTool}    ∂
  222.         -export `ConvertExportList "{somSourceDir}som_ListPart.exp"` ∂
  223.         {PPCLinkOptions}                                    ∂
  224.         {PPCLinkShLibOptions}                                ∂
  225.         -init ListPartCFMInit                                ∂
  226.         -verCur {CurrentLibraryVersion}                        ∂
  227.         -verDef {LibraryExportsVersion}                        ∂
  228.         -verImp {LibraryCodeVersion}                        ∂
  229.         {PPCShLibPreLibraries}                                ∂
  230.         {ListPartOBJECTS}                                    ∂
  231.         {somListPartOBJECTS}                                ∂
  232.         {OpenDocUtilityOBJECTS}                                ∂
  233.         "{ODCFMLibrariesDir}OpenDoc Core.stub"                ∂
  234.         "{ODCFMLibrariesDir}OpenDoc User Interface.stub"    ∂
  235.         "{ODCFMLibrariesDir}OpenDoc Storage.stub"            ∂
  236.         "{ODCFMLibrariesDir}OpenDoc Imaging.stub"            ∂
  237.         "{ODCFMLibrariesDir}OpenDoc Layout.stub"            ∂
  238.         "{ODCFMLibrariesDir}Memory Manager.stub"            ∂
  239.         {PPCShLibPostLibraries}                                ∂
  240.         -o "{ObjectsDir}{TargetNamePPCLink}"
  241.     If !{Status}
  242.         Move "{ObjectsDir}{TargetNamePPCLink}" "{TargetDir}"
  243.         Echo Building: {TargetNamePPCLink}.xSYM
  244.         {SymTool} "{ObjectsDir}{TargetNamePPCLink}".xcoff            ∂
  245.                 {AdditionalIncludes} -i "{ODUtilsImplDir}"            ∂
  246.                 -sym on,3.2 -o "{TargetDir}{TargetNamePPCLink}".xSYM
  247.         Echo Copying: {TargetNamePPCLink}∂'s resources
  248.         Echo "include ∂"{RsrcObjectsDir}{TargetName}.PPC.rsrc∂";" | Rez -a -o "{TargetDir}{TargetNamePPCLink}"
  249.         Echo "delete 'ckid';"  | Rez -a -o "{TargetDir}{TargetNamePPCLink}"
  250.         SetFile -a Bi -c "{TargetCreatorType}" {Targ}
  251.     End
  252.  
  253.  
  254. #---------------------------------------------------------------------------    
  255. # REZ STEPS
  256. #---------------------------------------------------------------------------    
  257.  
  258. "{RsrcObjectsDir}{TargetName}.PPC.rsrc"    ƒ                                ∂
  259.                                         "{SourceDir}ListPart.r"        ∂
  260.                                         "{SourceDir}ListPartDef.h"    ∂
  261.                                         "{SourceDir}ListPartVers.h"    ∂
  262.                                         "{SourceDir}ListPartOtherResources.rsrc"
  263.     Echo Rezzing: {TargetName}.r (for PPC)
  264.     Rez {RezOptions} {ODRezIntf} "{SourceDir}{TargetName}.r" -o {targ}
  265.     Echo "delete 'ckid';"  | Rez -a -o {Targ}
  266.     SetFile -a i -c "{ResEditCreator}" -t "{ResEditFileType}" {Targ}
  267.     if ( `exists "{TargetDir}{TargetNamePPCLink}" != ""` )
  268.         Echo Copying: {TargetNamePPCLink}∂'s resources
  269.         Echo "include ∂""{Targ}"∂";" | Rez -a -o "{TargetDir}{TargetNamePPCLink}"
  270.     end    
  271.  
  272. "{RsrcObjectsDir}{TargetName}.68k.rsrc"    ƒ                                ∂
  273.                                         "{SourceDir}ListPart.r"        ∂
  274.                                         "{SourceDir}ListPartDef.h"    ∂
  275.                                         "{SourceDir}ListPartVers.h"    ∂
  276.                                         "{SourceDir}ListPartOtherResources.rsrc"
  277.     Echo Rezzing: {TargetName}.r (for 68k)
  278.     Rez -d _68KBUILD_ {RezOptions} {ODRezIntf} "{SourceDir}{TargetName}.r" -o {Targ} 
  279.     Echo "delete 'ckid';"  | Rez -a -o {Targ}
  280.     SetFile -a i -c "{ResEditCreator}" -t "{ResEditFileType}" {Targ}
  281.     if ( `exists "{TargetDir}{TargetNameILink}" != ""` )
  282.         Echo Copying: {TargetNameILink}∂'s resources
  283.         Echo "include ∂""{Targ}"∂";" | Rez -a -o "{TargetDir}{TargetNameILink}"
  284.     end
  285.  
  286.  
  287.